{"ast":null,"code":"var __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport LeftOutlined from \"@ant-design/icons/es/icons/LeftOutlined\";\nimport RightOutlined from \"@ant-design/icons/es/icons/RightOutlined\";\nimport RotateLeftOutlined from \"@ant-design/icons/es/icons/RotateLeftOutlined\";\nimport RotateRightOutlined from \"@ant-design/icons/es/icons/RotateRightOutlined\";\nimport ZoomInOutlined from \"@ant-design/icons/es/icons/ZoomInOutlined\";\nimport ZoomOutOutlined from \"@ant-design/icons/es/icons/ZoomOutOutlined\";\nimport RcImage from 'rc-image';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport { getTransitionName } from '../_util/motion';\n// CSSINJS\nimport useStyle from './style';\nexport const icons = {\n  rotateLeft: /*#__PURE__*/React.createElement(RotateLeftOutlined, null),\n  rotateRight: /*#__PURE__*/React.createElement(RotateRightOutlined, null),\n  zoomIn: /*#__PURE__*/React.createElement(ZoomInOutlined, null),\n  zoomOut: /*#__PURE__*/React.createElement(ZoomOutOutlined, null),\n  close: /*#__PURE__*/React.createElement(CloseOutlined, null),\n  left: /*#__PURE__*/React.createElement(LeftOutlined, null),\n  right: /*#__PURE__*/React.createElement(RightOutlined, null)\n};\nconst InternalPreviewGroup = _a => {\n  var {\n      previewPrefixCls: customizePrefixCls,\n      preview\n    } = _a,\n    props = __rest(_a, [\"previewPrefixCls\", \"preview\"]);\n  const {\n    getPrefixCls\n  } = React.useContext(ConfigContext);\n  const prefixCls = getPrefixCls('image', customizePrefixCls);\n  const previewPrefixCls = `${prefixCls}-preview`;\n  const rootPrefixCls = getPrefixCls();\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  const mergedPreview = React.useMemo(() => {\n    if (preview === false) {\n      return preview;\n    }\n    const _preview = typeof preview === 'object' ? preview : {};\n    return Object.assign(Object.assign({}, _preview), {\n      transitionName: getTransitionName(rootPrefixCls, 'zoom', _preview.transitionName),\n      maskTransitionName: getTransitionName(rootPrefixCls, 'fade', _preview.maskTransitionName),\n      rootClassName: hashId\n    });\n  }, [preview]);\n  return wrapSSR( /*#__PURE__*/React.createElement(RcImage.PreviewGroup, Object.assign({\n    preview: mergedPreview,\n    previewPrefixCls: previewPrefixCls,\n    icons: icons\n  }, props)));\n};\nexport default InternalPreviewGroup;","map":{"version":3,"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","CloseOutlined","LeftOutlined","RightOutlined","RotateLeftOutlined","RotateRightOutlined","ZoomInOutlined","ZoomOutOutlined","RcImage","React","ConfigContext","getTransitionName","useStyle","icons","rotateLeft","createElement","rotateRight","zoomIn","zoomOut","close","left","right","InternalPreviewGroup","_a","previewPrefixCls","customizePrefixCls","preview","props","getPrefixCls","useContext","prefixCls","rootPrefixCls","wrapSSR","hashId","mergedPreview","useMemo","_preview","assign","transitionName","maskTransitionName","rootClassName","PreviewGroup"],"sources":["/data/messenger.client/node_modules/antd/es/image/PreviewGroup.js"],"sourcesContent":["var __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport LeftOutlined from \"@ant-design/icons/es/icons/LeftOutlined\";\nimport RightOutlined from \"@ant-design/icons/es/icons/RightOutlined\";\nimport RotateLeftOutlined from \"@ant-design/icons/es/icons/RotateLeftOutlined\";\nimport RotateRightOutlined from \"@ant-design/icons/es/icons/RotateRightOutlined\";\nimport ZoomInOutlined from \"@ant-design/icons/es/icons/ZoomInOutlined\";\nimport ZoomOutOutlined from \"@ant-design/icons/es/icons/ZoomOutOutlined\";\nimport RcImage from 'rc-image';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport { getTransitionName } from '../_util/motion';\n// CSSINJS\nimport useStyle from './style';\nexport const icons = {\n  rotateLeft: /*#__PURE__*/React.createElement(RotateLeftOutlined, null),\n  rotateRight: /*#__PURE__*/React.createElement(RotateRightOutlined, null),\n  zoomIn: /*#__PURE__*/React.createElement(ZoomInOutlined, null),\n  zoomOut: /*#__PURE__*/React.createElement(ZoomOutOutlined, null),\n  close: /*#__PURE__*/React.createElement(CloseOutlined, null),\n  left: /*#__PURE__*/React.createElement(LeftOutlined, null),\n  right: /*#__PURE__*/React.createElement(RightOutlined, null)\n};\nconst InternalPreviewGroup = _a => {\n  var {\n      previewPrefixCls: customizePrefixCls,\n      preview\n    } = _a,\n    props = __rest(_a, [\"previewPrefixCls\", \"preview\"]);\n  const {\n    getPrefixCls\n  } = React.useContext(ConfigContext);\n  const prefixCls = getPrefixCls('image', customizePrefixCls);\n  const previewPrefixCls = `${prefixCls}-preview`;\n  const rootPrefixCls = getPrefixCls();\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  const mergedPreview = React.useMemo(() => {\n    if (preview === false) {\n      return preview;\n    }\n    const _preview = typeof preview === 'object' ? preview : {};\n    return Object.assign(Object.assign({}, _preview), {\n      transitionName: getTransitionName(rootPrefixCls, 'zoom', _preview.transitionName),\n      maskTransitionName: getTransitionName(rootPrefixCls, 'fade', _preview.maskTransitionName),\n      rootClassName: hashId\n    });\n  }, [preview]);\n  return wrapSSR( /*#__PURE__*/React.createElement(RcImage.PreviewGroup, Object.assign({\n    preview: mergedPreview,\n    previewPrefixCls: previewPrefixCls,\n    icons: icons\n  }, props)));\n};\nexport default InternalPreviewGroup;"],"mappings":"AAAA,IAAIA,MAAM,GAAG,IAAI,IAAI,IAAI,CAACA,MAAM,IAAI,UAAUC,CAAC,EAAEC,CAAC,EAAE;EAClD,IAAIC,CAAC,GAAG,CAAC,CAAC;EACV,KAAK,IAAIC,CAAC,IAAIH,CAAC,EAAE,IAAII,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACP,CAAC,EAAEG,CAAC,CAAC,IAAIF,CAAC,CAACO,OAAO,CAACL,CAAC,CAAC,GAAG,CAAC,EAAED,CAAC,CAACC,CAAC,CAAC,GAAGH,CAAC,CAACG,CAAC,CAAC;EAChG,IAAIH,CAAC,IAAI,IAAI,IAAI,OAAOI,MAAM,CAACK,qBAAqB,KAAK,UAAU,EAAE,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEP,CAAC,GAAGC,MAAM,CAACK,qBAAqB,CAACT,CAAC,CAAC,EAAEU,CAAC,GAAGP,CAAC,CAACQ,MAAM,EAAED,CAAC,EAAE,EAAE;IAC3I,IAAIT,CAAC,CAACO,OAAO,CAACL,CAAC,CAACO,CAAC,CAAC,CAAC,GAAG,CAAC,IAAIN,MAAM,CAACC,SAAS,CAACO,oBAAoB,CAACL,IAAI,CAACP,CAAC,EAAEG,CAAC,CAACO,CAAC,CAAC,CAAC,EAAER,CAAC,CAACC,CAAC,CAACO,CAAC,CAAC,CAAC,GAAGV,CAAC,CAACG,CAAC,CAACO,CAAC,CAAC,CAAC;EACnG;EACA,OAAOR,CAAC;AACV,CAAC;AACD,OAAOW,aAAa,MAAM,0CAA0C;AACpE,OAAOC,YAAY,MAAM,yCAAyC;AAClE,OAAOC,aAAa,MAAM,0CAA0C;AACpE,OAAOC,kBAAkB,MAAM,+CAA+C;AAC9E,OAAOC,mBAAmB,MAAM,gDAAgD;AACh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